﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;

namespace Oplug.EntityFramework.RossLive
{
    [Table("DataSQL")]
    public class DataSQL : IEntity<long>
    {
        public long ID { get; set; }

        [Required]
        [StringLength(50)]
        public string ViewName { get; set; }
        [Required]
        [StringLength(50)]
        public string DisplayName { get; set; }

        [StringLength(200)]
        public string Memo { get; set; }

        [StringLength(8)]
        public string ViewType { get; set; }

        public DateTime CreateTime { get; set; }

        [StringLength(20)]
        public string CreateUser { get; set; }

        [Required]
        public string SQLText { get; set; }
        [StringLength(10)]
        public string Version { get; set; }
    }
}
